package demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ASUS
 * Date: 2023-10-16
 * Time: 17:38
 */
public class Test2 {
    public static void main(String[] args) {
        int x = 10;
        int y = 20;
        int ret = sum(x,y);
        System.out.println(ret);
        double d1 = 12.5;
        double d2 = 20.5;
        double ret2 = sum(d1, d2);
        System.out.println(ret2);
    }
    public static int sum(int a, int b) {
        return a + b;
    }
    public static double sum(double a, double b) {
        return a + b;
    }
}
